package org.skywork.top.core.rule.model.rule.lhs;

import lombok.Data;
import org.skywork.top.core.rule.model.rule.SimpleArithmetic;

@Data
public class Left {
    private String id;
    private LeftPart leftPart;
    private LeftType type;
    private SimpleArithmetic arithmetic;

    public String getId(){
        if(id==null){
            id=leftPart.getId();
            if(arithmetic!=null){
                id=id+arithmetic.getId();
            }
        }
        return id;
    }
}
